<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'bootstrap5/bootstrap.min.css' %}">
    <script src="{% static 'bootstrap5/popper.min.js' %}"></script>
    <script src="{% static 'bootstrap5/bootstrap.min.js' %}"></script>
</head>
<body>
<header>
    <div class="px-3 py-2 text-bg-dark">
        <div class="container">
            <div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
                <a href="/" class="d-flex align-items-center my-2 my-lg-0 me-lg-auto text-white text-decoration-none">
                    <svg class="bi me-2" width="40" height="32" role="img" aria-label="Bootstrap"><use href="#bootstrap"></use></svg>
                </a>

                <ul class="nav col-12 col-lg-auto my-2 justify-content-center my-md-0 text-small">
                    <li>
                        <a href="/index" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#speedometer2"></use></svg>
                            首页
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#table"></use></svg>
                            检测记录
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#grid"></use></svg>
                            智能助手
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-secondary">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#home"></use></svg>
                            黑/白名单
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#people-circle"></use></svg>
                            模型信息
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="px-3 py-2 border-bottom mb-3">
        <div class="container d-flex flex-wrap justify-content-center">
            <form class="col-12 col-lg-auto mb-2 mb-lg-0 me-lg-auto" role="search">
                <input type="search" class="form-control" placeholder="Search..." aria-label="Search">
            </form>

            <div class="text-end">
                <a type="button" class="btn btn-light text-dark me-2" href="input_apkinfo">编辑</a>
                <a type="button" class="btn btn-primary" href="/blacklist/black_list">黑名单</a>
            </div>
        </div>
    </div>
</header>
<main class="container bg-white p-3 rounded">
    <h1>白名单管理</h1>
    <div class="row row-cols-2 row-gap-4">
        {% for apk in apks %}
            {% if apk.ret == "0" %}
                <div class="col">
                    <div class="card">
                        <div class="card-header">
                            <a href="/apk_detail/{{ apk.id }}">应用：{{ apk.app_name }}</a>
                        </div>
                        <div class="card-body" style="height: 150px;">
                            {#                        <p class="card-text">应用：{{ apk.app_name }}</p>#}
                            <p class="card-text">发布者：{{ apk.issuer }}</p>
                            <p class="card-text">版本号：{{ apk.version_name }}</p>
                        </div>
                        <div class="card-footer text-body-secondary d-flex justify-content-between">
                            <div>检测时间：{{ apk.record_time|date:"Y年m月d日 h时i分" }}</div>
                        </div>
                    </div>
                </div>
            {% endif %}
        {% endfor %}
    </div>
</main>
</body>
</html>